#ifndef FUTON_H
#define FUTON_H

#include "database.h"
#include "stringlist.h"
#include "about.h"

#include <vector>
#include <QString>
#include <QMainWindow>
#include <QMenu>
#include <QDesktopServices>
#include <QListWidgetItem>

namespace Ui
{
    class Futon;
}

class Futon : public QMainWindow
{
    Q_OBJECT

public:
    explicit Futon(QWidget *parent = 0);
    ~Futon();

private slots:
    void on_search_textEdited();
    void on_search_returnPressed();
    void on_back_clicked();
    void on_next_clicked();
    void add_bookmarks();
    void clear_history();
    void clear_bookmarks();
    void report_bug();
    void about();
    void sider(bool c);
    void change_icon();
    void on_bookmark_button_clicked();
    void on_search_editingFinished();
    void on_bookmarks_list_itemClicked(QListWidgetItem *item);
    void on_bookmarks_list_customContextMenuRequested(const QPoint &pos);
    void con_remove();

private:
    QString actual;
    StringList bookmarks;
    Database dbase;
    StringList history;
    Ui::Futon *ui;
};

#endif // FUTON_H
